const fs = require('fs');

// 1. 写文件路径
var path = './data/test1.txt';

var content = 'this is write file!';
// 异步的写
var content = fs.writeFile(path, content, 'utf-8', (error) => {
    console.log(error);
});

console.log('end....') // 先输出


